import { ApiProperty } from '@nestjs/swagger';
import { IsOptional, IsString } from 'class-validator';

export class UpdateOrganizationAdminReqDto {
  @ApiProperty({ description: '组织名称', required: false })
  @IsString({ message: '组织名称格式不正确' })
  @IsOptional()
  readonly name: string;

  @ApiProperty({ description: '组织描述', required: false })
  @IsString({ message: '组织描述格式不正确' })
  @IsOptional()
  readonly description: string;
}
